Skip to content

Added NODE_AUTH_TOKEN to build the fork of @percy/ember - #326

Merged
ijlee2 merged 1 commit into
mainfrom
patch-324
Oct 20, 2026
Merged

ijlee2 merged 1 commit into
mainfrom
patch-324

Conversation

@ijlee2

@ijlee2 ijlee2 commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

Background

Patches #324.

In #322, I introduced a fork of @percy/ember, which uses yarn@v1 to manage its dependencies. It turned out that yarn@v1 requires NODE_AUTH_TOKEN, while pnpm displays only a warning if the variable is missing.

The error thrown by yarn prevents the publish workflow from succeeding.

Run pnpm install --frozen-lockfile
  pnpm install --frozen-lockfile
  shell: /usr/bin/bash -e {0}
  env:
    NODE_VERSION: 22
    PNPM_HOME: /home/runner/setup-pnpm/node_modules/.bin
    NPM_CONFIG_USERCONFIG: /home/runner/work/_temp/.npmrc
[WARN] Failed to replace env in config: ${NODE_AUTH_TOKEN} in .npmrc key "_authToken"
Scope: all 9 workspace projects
? Verifying lockfile against supply-chain policies (1477 entries)...
Packages are hard linked from the content-addressable store to the virtual store.
  Content-addressable store is at: /home/runner/setup-pnpm/node_modules/.bin/store/v11
  Virtual store is at:             node_modules/.pnpm
Downloading @rolldown/binding-linux-x64-gnu@1.2.14: 0.00 B/8.27 MB
Downloading pdfjs-dist@2.16.105: 0.00 B/9.85 MB
../../../../../tmp/.tmp382JNr yarn-install$ yarn install
../../../../../tmp/.tmp382JNr yarn-install: ...gine-1.22.22-2778-1792482454975044909 | Progress: resolved 1, reused 0, downloaded 0, added 0
../../../../../tmp/.tmp382JNr yarn-install: Packages are copied from the content-addressable store to the virtual store.
../../../../../tmp/.tmp382JNr yarn-install:   Content-addressable store is at: /home/runner/setup-pnpm/node_modules/.bin/package-manager-store/v11
../../../../../tmp/.tmp382JNr yarn-install:   Virtual store is at:             ../../home/runner/setup-pnpm/node_modules/.bin/package-manager-store/v11/links
../../../../../tmp/.tmp382JNr yarn-install: ...gine-1.22.22-2778-1792482454975044909 | Progress: resolved 1, reused 0, downloaded 1, added 1, done
../../../../../tmp/.tmp382JNr yarn-install: 
../../../../../tmp/.tmp382JNr yarn-install: dependencies:
../../../../../tmp/.tmp382JNr yarn-install: + yarn 1.22.22
../../../../../tmp/.tmp382JNr yarn-install: 
../../../../../tmp/.tmp382JNr yarn-install: yarn install v1.22.22
../../../../../tmp/.tmp382JNr yarn-install: error Error: Failed to replace env in config: ${NODE_AUTH_TOKEN}
../../../../../tmp/.tmp382JNr yarn-install: info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
../../../../../tmp/.tmp382JNr yarn-install: Failed
✓ Lockfile passes supply-chain policies (1477 entries in 2.8s)
Lockfile is up to date, resolution step is skipped
Error: ERR_PNPM_PREPARE_PACKAGE
  × installing dependencies
  ╰─▶ Failed to prepare package: @percy/ember@5.0.2 yarn-install: `yarn
      install` exited with exit status: 1
Error: Process completed with exit code 1.

@ijlee2 ijlee2 added the bug Something isn't working label Oct 20, 2026
@ijlee2 ijlee2 changed the title Patched #324 Added NODE_AUTH_TOKEN to build the fork of @percy/ember Oct 20, 2026
@ijlee2
ijlee2 marked this pull request as ready for review October 20, 2026 08:02
@ijlee2
ijlee2 merged commit e949280 into main Oct 20, 2026
26 checks passed
@ijlee2
ijlee2 deleted the patch-324 branch October 20, 2026 08:03
Comment on lines +36 to +37
env:
NODE_AUTH_TOKEN: "some-token" # Fork of @percy/ember uses yarn@v1, which requires NODE_AUTH_TOKEN

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO

Remove it after percy/percy-ember#1210 is merged and published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant